# coding=utf-8
# 全世界最帅的帅哥
from pathlib import Path
from datetime import timedelta


class GatewayConfig(object):
    # 日志的配置
    LOGGING_LEVEL = "INFO"
    LOGGING_FILE_DIR = Path(__file__).parent.parent / "logs"
    LOGGING_FILE_MAX_BYTES = 300 * 1024 * 1024
    LOGGING_BACKUP = 10

    # JWT配置
    JWT_TOKEN_LOCATION = ["headers", "cookies", "json"]
    JWT_SECRET_KEY = '0c22522f23fd61c8a677bf8f5b073442'
    JWT_ACCESS_TOKEN_EXPIRES = timedelta(hours=1)
    JWT_REFRESH_TOKEN_EXPIRES = timedelta(days=30)

    SECRET_KEY = "55SPIHI49tNNlrJGivQm"
